package com.aviation.sell_ticket.service;

import com.aviation.sell_ticket.pojo.Aviation_airport;
import com.aviation.sell_ticket.pojo.Aviation_city;
import com.aviation.sell_ticket.pojo.Aviation_flight;
import org.apache.ibatis.annotations.Param;

import java.time.LocalDate;
import java.time.LocalDateTime;
import java.util.List;
import java.util.Map;

public interface FlightService {

    public Map<String,Object> oneWayQuery(String departure, String destination, LocalDate departureTime);

    public Map<String,Object> transferQuery(String departure, String destination, LocalDate departureTime);

    public List<Aviation_flight> screenFlight(List<Aviation_flight> flights, LocalDate departureTime, Aviation_city departureCity, Aviation_city destinationCity, List<Aviation_airport> departureAirport, List<Aviation_airport> destinationAirport,Integer shunt);

    public Aviation_flight screenFlight(Aviation_flight flight, LocalDate departureTime, Aviation_city departureCity, Aviation_city destinationCity, List<Aviation_airport> departureAirport, List<Aviation_airport> destinationAirport,Integer shunt);

    public Aviation_flight verifyRoute(String flightId,LocalDate departure);

    public Aviation_flight singleFlight(String flightId,LocalDate departureTime);

    public String flightNumber(String flightId);

    public Map<String,Object> flightMap(String departure, List<String> destination,LocalDate start,LocalDate end);

}
